package com.lin.filegraph.utils.parser.node;

import org.eclipse.jdt.core.dom.ASTNode;

import java.util.List;

/**
 * @description:
 * @author: linhuaixu
 * @time: 2023/5/18 10:25
 */

public class JEnumConstantNode extends JTreeNode {
    private String strEnumConstantName;
    private String strModifiers;
    private List<Object> listArguments = null;

    public JEnumConstantNode(String filePath, ASTNode astNode, String strEnumConstantName, String strModifiers,
                             List<Object> listArguments) {
        super(filePath, astNode);
        this.strEnumConstantName = strEnumConstantName;
        this.strModifiers = strModifiers;
        this.listArguments = listArguments;
    }

    public String getStrEnumConstantName() {
        return strEnumConstantName;
    }

    public String getStrModifiers() {
        return strModifiers;
    }

    public List<Object> getListArguments() {
        return listArguments;
    }

    @Override
    public String toString() {
        return "[EnumConstantNode] ClassName:" + strEnumConstantName +
//				" FilePath:" + getFilePath();
                " modifier:" + strModifiers +
                " listArguments:" + listArguments;
    }

}
